#!/bin/sh
export HASTHI_HOME=/u/drlead/deployment/development/management/target/dist-bin
echo $HASTHI_HOME
cd $HASTHI_HOME
if [ "$1" == "boot" ]; then
nohup $HASTHI_HOME/bootstrap.sh  2>&1>> hasthi.log &
else
nohup $HASTHI_HOME/mngenode.sh $HASTHI_HOME/hasthi.properties  2>&1>> $HASTHI_HOME/hasthi.log &
nohup $HASTHI_HOME/hostagent.sh  2>&1>> $HASTHI_HOME/hasthi.log &
fi
echo "Completed"
